<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      >
            
    

     <ui:composition template="/WEB-INF/layout/layout.xhtml">
        <ui:define name="title">Upravit clanek</ui:define>
        <ui:define name="nadpis">Upravit clanek</ui:define>

        <ui:define name="obsah">
            <h:form> 
            <h:outputLabel value="Nazev: ">
                <h:inputText value="#{ClankyBean.aktualniClanek.nazev}" />
            </h:outputLabel> <br />
            <h:outputLabel value="Kategorie: ">
                <h:selectOneMenu value="#{ClankyBean.aktualniClanek.kategorie}">
                    <f:selectItem itemValue="1" itemLabel="Software"/>
                    <f:selectItem itemValue="2" itemLabel="Hardware"/>
                    <f:selectItem itemValue="3" itemLabel="Hry"/>
                    <f:selectItem itemValue="4" itemLabel="Site"/>
                </h:selectOneMenu>
            </h:outputLabel><br /><br />
            <h:outputLabel value="Text: ">
                <p:editor value="#{ClankyBean.aktualniClanek.text}" widgetVar="editor" width="500" />
            </h:outputLabel>                 
            <h:inputHidden value="#{ClankyBean.aktualniClanek.id}"/>
            <h:commandButton value="Odeslat" action="#{ClankyBean.editClanek}" />
        </h:form>       
        </ui:define>
        
        <ui:define name="menu">
            <ui:include src="/WEB-INF/jspf/menu.xhtml" />
        </ui:define>

    </ui:composition>

</html>

